package com.example.myDesignPatterns.创建者模式.原型模式.浅克隆.assembly;

import com.example.myDesignPatterns.创建者模式.原型模式.浅克隆.bean.Student;
import lombok.Data;

//奖状类
@Data
public class Citation implements Cloneable {
    private Student stu;

    public void show() {
        System.out.println(stu.getName() + "同学：在2020学年第一学期中表现优秀，被评为三好学生。特发此状！");
    }

    @Override
    public Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}